[VMXASSIST] Small fix to virt-to-phys translation.
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 26 Sep 2006 07:36:39 +0000 (08:36 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 26 Sep 2006 07:36:39 +0000 (08:36 +0100)
CR4.PSE is ignored in PAE mode, so remove test of it.
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/firmware/vmxassist/vm86.c

index ad12307ae1840333c0f0af04a607abdee0a13f64..fb22938e726be3d6ca62bfcc0892ff1bb97ff92e 100644 (file)
@@ -95,7 +95,7 @@ guest_linear_to_real(uint32_t base)
                if (!(l1_mfn & PT_ENTRY_PRESENT))
                        panic("l2 entry not present\n");
 
-               if ((oldctx.cr4 & CR4_PSE) && (l1_mfn & PDE_PS)) {
+               if (l1_mfn & PDE_PS) { /* CR4.PSE is ignored in PAE mode */
                        l0_mfn = l1_mfn & 0x3ffe00000ULL;
                        return l0_mfn + (base & 0x1fffff);
                }